﻿using Microsoft.AspNetCore.Mvc;

namespace PageOffice6_Net_Core.Controllers.POPDF
{
    public class POPDFController : Controller
    {
        public IActionResult PDF()
        {
            PageOfficeNetCore.PDFCtrl pdfCtrl = new PageOfficeNetCore.PDFCtrl(Request);
            pdfCtrl.WebOpen("doc/test.pdf");
            ViewBag.pdfCtrl = pdfCtrl.GetHtml();
            return View();
        }
    }
}